import api from '@/utils/http.js'

export const userUpdateOne = async (data) => {
    return await api.put('/updateUser', data)
}

export const userSelectPage = async (data) => {
    return await api.get('/selectUser/page', { params: data })
}

export const userInsertOne = async (data) => {
    return await api.post('/insertUser', data)
}

export const userDeleteOne = async (id) => {
    return await api.delete('/deleteUser/' + id)
}

export const userSelectOne = async (id) => {
    return await api.get('/getUserInfo/' + id)
}
